//静态路由
const constantRoutes = [
  {
    path: "/login",
    name: "login",
    component: () => import(/* webpackChunkName: "user" */ "@/views/user/login")
  },
  {
    path: "/403",
    name: "403",
    component: () =>
      import(/* webpackChunkName: "exception" */ "@/views/exception/403")
  },
  {
    path: "*",
    name: "404",
    component: () =>
      import(/* webpackChunkName: "exception" */ "@/views/exception/404")
  },
  {
    path: "/",
    name: "index",
    redirect: "/home",
    component: () =>
      import(/* webpackChunkName: "layouts" */ "@/views/index.vue"),
    children: [
      {
        path: "/home",
        name: "home",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/home.vue"),
        meta: {
          isTab: false,
          keepAlive: false,
          links: ["首页"]
        }
      },
      {
        path: "/project",
        name: "project",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/project/index.vue"),
        meta: {
          isTab: true,
          keepAlive: false,
          links: ["项目概况"]
        }
      },
      {
        path: "/goodsManage",
        name: "goodsManage",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/goods/goodsManage.vue"),
        meta: {
          isTab: true,
          keepAlive: false,
          links: ["材料列表"]
        }
      },
      {
        path: "/goodsEnter",
        name: "goodsEnter",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/goods/goodsEnter.vue"),
        meta: {
          isTab: true,
          keepAlive: false,
          links: ["材料入库"]
        }
      },
      {
        path: "/goodsDetail",
        name: "goodsDetail",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/goods/goodsDetail.vue"),
        meta: {
          isTab: true,
          keepAlive: false,
          links: ["材料使用详情"]
        }
      },
      {
        path: "/applyPage",
        name: "applyPage",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/apply/applyPage.vue"),
        meta: {
          isTab: true,
          keepAlive: false,
          links: ["采购申请"]
        }
      },
      {
        path: "/applyList",
        name: "applyList",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/apply/applyList.vue"),
        meta: {
          isTab: true,
          keepAlive: false,
          links: ["申请记录"]
        }
      },
      {
        path: "/applyProcess",
        name: "applyProcess",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/apply/applyProcess.vue"),
        meta: {
          isTab: false,
          keepAlive: false,
          links: ["申请进度"]
        }
      },
      {
        path: "/applyCheck",
        name: "applyCheck",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/apply/applyCheck.vue"),
        meta: {
          isTab: true,
          keepAlive: false,
          links: ["申请审核"]
        }
      },
      {
        path: "/checkPage",
        name: "checkPage",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/apply/checkPage.vue"),
        meta: {
          isTab: false,
          keepAlive: false,
          links: ["审核页"]
        }
      },
      {
        path: "/agreement",
        name: "agreement",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/agreement/index.vue"),
        meta: {
          isTab: true,
          keepAlive: false,
          links: ["合同管理"]
        }
      },
      {
        path: "/videoMonitor",
        name: "videoMonitor",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/video/videoMonitor.vue"),
        meta: {
          isTab: true,
          keepAlive: false,
          links: ["视频监控"]
        }
      },
      {
        path: "/agreeDetail",
        name: "agreeDetail",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/agreement/agreeDetail.vue"),
        meta: {
          isTab: false,
          keepAlive: false,
          links: ["合同详情"]
        }
      },
      {
        path: "/inputAgree",
        name: "inputAgree",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/agreement/inputAgree.vue"),
        meta: {
          isTab: false,
          keepAlive: false,
          links: ["合同录入"]
        }
      },
      {
        path: "/sendRecord",
        name: "sendRecord",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/agreement/sendRecord.vue"),
        meta: {
          isTab: false,
          keepAlive: false,
          links: ["送货记录"]
        }
      },
      {
        path: "/projectDetail",
        name: "projectDetail",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/project/detail.vue"),
        meta: {
          isTab: false,
          keepAlive: false,
          links: ["项目详情"]
        }
      },
      {
        path: "/newsEdit",
        name: "newsEdit",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/news/editNews.vue"),
        meta: {
          isTab: true,
          keepAlive: true,
          links: ["新闻编辑"]
        }
      },
      {
        path: "/newsList",
        name: "newsList",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/news/newsList.vue"),
        meta: {
          isTab: false,
          keepAlive: false,
          links: ["信息列表"]
        }
      },
      {
        path: "/articleDetail",
        name: "articleDetail",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/news/articleDetail.vue"),
        meta: {
          isTab: false,
          keepAlive: false,
          links: ["文章详情"]
        }
      },
      {
        path: "/threeBox",
        name: "threeBox",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/3D/three.vue"),
        meta: {
          isTab: true,
          keepAlive: false,
          links: ["3D视图"]
        }
      },
      {
        path: "/authManage",
        name: "authManage",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/views/authManage/index.vue"),
        meta: {
          isTab: true,
          keepAlive:true,
          links: ["权限管理"]
        }
      },
      {
        path: "/405",
        name: "405",
        component: () =>
          import(/* webpackChunkName: "layouts" */ "@/components/405.vue"),
        meta: {
          isTab: false,
          keepAlive:true,
          links: ["405"]
        }
      }
      
    ] //二级子路由
  }
];


export { constantRoutes };
